package com.java.common.exception;

import lombok.Getter;

@Getter
public enum BusinessExceptionEnum {

    MEMBER_NOT_EXIST("会员不存在"),
    USER_LOGIN_NAME_EXIST("用户名已存在"),
    LOGIN_USER_ERROR("用户名或者密码错误"),
    USER_PASSWORD_LENGTH_NOT_ENOUGH("密码长度不够"),
    CONFIRM_PASSWORD_NOT_MATCH("两次密码输入不一致"),
    LOGIN_MEMBER_ERROR("手机号不存在或密码错误"),
    MOBILE_CODE_TOO_FREQUENT("短信请求过于频繁"),
    MOBILE_CODE_ERROR("短信验证码不正确"),
    MOBILE_CODE_EXPIRED("短信验证码不存在或已过期，请重新发送短信"),

    STOCK_NOT_ENOUGH("商品库存不足"),
    ;

    private final String desc;

    BusinessExceptionEnum(String desc) {
        this.desc = desc;
    }
}
